home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / nss / secoidt.h < prev    next >
C/C++ Source or Header  |  2006-04-20  |  16KB  |  433 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is the Netscape security libraries.
  15.  *
  16.  * The Initial Developer of the Original Code is
  17.  * Netscape Communications Corporation.
  18.  * Portions created by the Initial Developer are Copyright (C) 1994-2000
  19.  * the Initial Developer. All Rights Reserved.
  20.  *
  21.  * Contributor(s):
  22.  *   Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. #ifndef _SECOIDT_H_
  39. #define _SECOIDT_H_
  40. /*
  41.  * secoidt.h - public data structures for ASN.1 OID functions
  42.  *
  43.  * $Id: secoidt.h,v 1.19 2005/03/07 18:34:48 wtchang%redhat.com Exp $
  44.  */
  45.  
  46. #include "secitem.h"
  47.  
  48. typedef struct SECOidDataStr SECOidData;
  49. typedef struct SECAlgorithmIDStr SECAlgorithmID;
  50.  
  51. /*
  52. ** An X.500 algorithm identifier
  53. */
  54. struct SECAlgorithmIDStr {
  55.     SECItem algorithm;
  56.     SECItem parameters;
  57. };
  58.  
  59. /*
  60.  * Misc object IDs - these numbers are for convenient handling.
  61.  * They are mapped into real object IDs
  62.  *
  63.  * NOTE: the order of these entries must mach the array "oids" of SECOidData
  64.  * in util/secoid.c.
  65.  */
  66. typedef enum {
  67.     SEC_OID_UNKNOWN = 0,
  68.     SEC_OID_MD2 = 1,
  69.     SEC_OID_MD4 = 2,
  70.     SEC_OID_MD5 = 3,
  71.     SEC_OID_SHA1 = 4,
  72.     SEC_OID_RC2_CBC = 5,
  73.     SEC_OID_RC4 = 6,
  74.     SEC_OID_DES_EDE3_CBC = 7,
  75.     SEC_OID_RC5_CBC_PAD = 8,
  76.     SEC_OID_DES_ECB = 9,
  77.     SEC_OID_DES_CBC = 10,
  78.     SEC_OID_DES_OFB = 11,
  79.     SEC_OID_DES_CFB = 12,
  80.     SEC_OID_DES_MAC = 13,
  81.     SEC_OID_DES_EDE = 14,
  82.     SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE = 15,
  83.     SEC_OID_PKCS1_RSA_ENCRYPTION = 16,
  84.     SEC_OID_PKCS1_MD2_WITH_RSA_ENCRYPTION = 17,
  85.     SEC_OID_PKCS1_MD4_WITH_RSA_ENCRYPTION = 18,
  86.     SEC_OID_PKCS1_MD5_WITH_RSA_ENCRYPTION = 19,
  87.     SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION = 20,
  88.     SEC_OID_PKCS5_PBE_WITH_MD2_AND_DES_CBC = 21,
  89.     SEC_OID_PKCS5_PBE_WITH_MD5_AND_DES_CBC = 22,
  90.     SEC_OID_PKCS5_PBE_WITH_SHA1_AND_DES_CBC = 23,
  91.     SEC_OID_PKCS7 = 24,
  92.     SEC_OID_PKCS7_DATA = 25,
  93.     SEC_OID_PKCS7_SIGNED_DATA = 26,
  94.     SEC_OID_PKCS7_ENVELOPED_DATA = 27,
  95.     SEC_OID_PKCS7_SIGNED_ENVELOPED_DATA = 28,
  96.     SEC_OID_PKCS7_DIGESTED_DATA = 29,
  97.     SEC_OID_PKCS7_ENCRYPTED_DATA = 30,
  98.     SEC_OID_PKCS9_EMAIL_ADDRESS = 31,
  99.     SEC_OID_PKCS9_UNSTRUCTURED_NAME = 32,
  100.     SEC_OID_PKCS9_CONTENT_TYPE = 33,
  101.     SEC_OID_PKCS9_MESSAGE_DIGEST = 34,
  102.     SEC_OID_PKCS9_SIGNING_TIME = 35,
  103.     SEC_OID_PKCS9_COUNTER_SIGNATURE = 36,
  104.     SEC_OID_PKCS9_CHALLENGE_PASSWORD = 37,
  105.     SEC_OID_PKCS9_UNSTRUCTURED_ADDRESS = 38,
  106.     SEC_OID_PKCS9_EXTENDED_CERTIFICATE_ATTRIBUTES = 39,
  107.     SEC_OID_PKCS9_SMIME_CAPABILITIES = 40,
  108.     SEC_OID_AVA_COMMON_NAME = 41,
  109.     SEC_OID_AVA_COUNTRY_NAME = 42,
  110.     SEC_OID_AVA_LOCALITY = 43,
  111.     SEC_OID_AVA_STATE_OR_PROVINCE = 44,
  112.     SEC_OID_AVA_ORGANIZATION_NAME = 45,
  113.     SEC_OID_AVA_ORGANIZATIONAL_UNIT_NAME = 46,
  114.     SEC_OID_AVA_DN_QUALIFIER = 47,
  115.     SEC_OID_AVA_DC = 48,
  116.  
  117.     SEC_OID_NS_TYPE_GIF = 49,
  118.     SEC_OID_NS_TYPE_JPEG = 50,
  119.     SEC_OID_NS_TYPE_URL = 51,
  120.     SEC_OID_NS_TYPE_HTML = 52,
  121.     SEC_OID_NS_TYPE_CERT_SEQUENCE = 53,
  122.     SEC_OID_MISSI_KEA_DSS_OLD = 54,
  123.     SEC_OID_MISSI_DSS_OLD = 55,
  124.     SEC_OID_MISSI_KEA_DSS = 56,
  125.     SEC_OID_MISSI_DSS = 57,
  126.     SEC_OID_MISSI_KEA = 58,
  127.     SEC_OID_MISSI_ALT_KEA = 59,
  128.  
  129.     /* Netscape private certificate extensions */
  130.     SEC_OID_NS_CERT_EXT_NETSCAPE_OK = 60,
  131.     SEC_OID_NS_CERT_EXT_ISSUER_LOGO = 61,
  132.     SEC_OID_NS_CERT_EXT_SUBJECT_LOGO = 62,
  133.     SEC_OID_NS_CERT_EXT_CERT_TYPE = 63,
  134.     SEC_OID_NS_CERT_EXT_BASE_URL = 64,
  135.     SEC_OID_NS_CERT_EXT_REVOCATION_URL = 65,
  136.     SEC_OID_NS_CERT_EXT_CA_REVOCATION_URL = 66,
  137.     SEC_OID_NS_CERT_EXT_CA_CRL_URL = 67,
  138.     SEC_OID_NS_CERT_EXT_CA_CERT_URL = 68,
  139.     SEC_OID_NS_CERT_EXT_CERT_RENEWAL_URL = 69,
  140.     SEC_OID_NS_CERT_EXT_CA_POLICY_URL = 70,
  141.     SEC_OID_NS_CERT_EXT_HOMEPAGE_URL = 71,
  142.     SEC_OID_NS_CERT_EXT_ENTITY_LOGO = 72,
  143.     SEC_OID_NS_CERT_EXT_USER_PICTURE = 73,
  144.     SEC_OID_NS_CERT_EXT_SSL_SERVER_NAME = 74,
  145.     SEC_OID_NS_CERT_EXT_COMMENT = 75,
  146.     SEC_OID_NS_CERT_EXT_LOST_PASSWORD_URL = 76,
  147.     SEC_OID_NS_CERT_EXT_CERT_RENEWAL_TIME = 77,
  148.     SEC_OID_NS_KEY_USAGE_GOVT_APPROVED = 78,
  149.  
  150.     /* x.509 v3 Extensions */
  151.     SEC_OID_X509_SUBJECT_DIRECTORY_ATTR = 79,
  152.     SEC_OID_X509_SUBJECT_KEY_ID = 80,
  153.     SEC_OID_X509_KEY_USAGE = 81,
  154.     SEC_OID_X509_PRIVATE_KEY_USAGE_PERIOD = 82,
  155.     SEC_OID_X509_SUBJECT_ALT_NAME = 83,
  156.     SEC_OID_X509_ISSUER_ALT_NAME = 84,
  157.     SEC_OID_X509_BASIC_CONSTRAINTS = 85,
  158.     SEC_OID_X509_NAME_CONSTRAINTS = 86,
  159.     SEC_OID_X509_CRL_DIST_POINTS = 87,
  160.     SEC_OID_X509_CERTIFICATE_POLICIES = 88,
  161.     SEC_OID_X509_POLICY_MAPPINGS = 89,
  162.     SEC_OID_X509_POLICY_CONSTRAINTS = 90,
  163.     SEC_OID_X509_AUTH_KEY_ID = 91,
  164.     SEC_OID_X509_EXT_KEY_USAGE = 92,
  165.     SEC_OID_X509_AUTH_INFO_ACCESS = 93,
  166.  
  167.     SEC_OID_X509_CRL_NUMBER = 94,
  168.     SEC_OID_X509_REASON_CODE = 95,
  169.     SEC_OID_X509_INVALID_DATE = 96,
  170.     /* End of x.509 v3 Extensions */    
  171.  
  172.     SEC_OID_X500_RSA_ENCRYPTION = 97,
  173.  
  174.     /* alg 1485 additions */
  175.     SEC_OID_RFC1274_UID = 98,
  176.     SEC_OID_RFC1274_MAIL = 99,
  177.  
  178.     /* PKCS 12 additions */
  179.     SEC_OID_PKCS12 = 100,
  180.     SEC_OID_PKCS12_MODE_IDS = 101,
  181.     SEC_OID_PKCS12_ESPVK_IDS = 102,
  182.     SEC_OID_PKCS12_BAG_IDS = 103,
  183.     SEC_OID_PKCS12_CERT_BAG_IDS = 104,
  184.     SEC_OID_PKCS12_OIDS = 105,
  185.     SEC_OID_PKCS12_PBE_IDS = 106,
  186.     SEC_OID_PKCS12_SIGNATURE_IDS = 107,
  187.     SEC_OID_PKCS12_ENVELOPING_IDS = 108,
  188.    /* SEC_OID_PKCS12_OFFLINE_TRANSPORT_MODE,
  189.     SEC_OID_PKCS12_ONLINE_TRANSPORT_MODE, */
  190.     SEC_OID_PKCS12_PKCS8_KEY_SHROUDING = 109,
  191.     SEC_OID_PKCS12_KEY_BAG_ID = 110,
  192.     SEC_OID_PKCS12_CERT_AND_CRL_BAG_ID = 111,
  193.     SEC_OID_PKCS12_SECRET_BAG_ID = 112,
  194.     SEC_OID_PKCS12_X509_CERT_CRL_BAG = 113,
  195.     SEC_OID_PKCS12_SDSI_CERT_BAG = 114,
  196.     SEC_OID_PKCS12_PBE_WITH_SHA1_AND_128_BIT_RC4 = 115,
  197.     SEC_OID_PKCS12_PBE_WITH_SHA1_AND_40_BIT_RC4 = 116,
  198.     SEC_OID_PKCS12_PBE_WITH_SHA1_AND_TRIPLE_DES_CBC = 117,
  199.     SEC_OID_PKCS12_PBE_WITH_SHA1_AND_128_BIT_RC2_CBC = 118,
  200.     SEC_OID_PKCS12_PBE_WITH_SHA1_AND_40_BIT_RC2_CBC = 119,
  201.     SEC_OID_PKCS12_RSA_ENCRYPTION_WITH_128_BIT_RC4 = 120,
  202.     SEC_OID_PKCS12_RSA_ENCRYPTION_WITH_40_BIT_RC4 = 121,
  203.     SEC_OID_PKCS12_RSA_ENCRYPTION_WITH_TRIPLE_DES = 122,
  204.     SEC_OID_PKCS12_RSA_SIGNATURE_WITH_SHA1_DIGEST = 123,
  205.     /* end of PKCS 12 additions */
  206.  
  207.     /* DSA signatures */
  208.     SEC_OID_ANSIX9_DSA_SIGNATURE = 124,
  209.     SEC_OID_ANSIX9_DSA_SIGNATURE_WITH_SHA1_DIGEST = 125,
  210.     SEC_OID_BOGUS_DSA_SIGNATURE_WITH_SHA1_DIGEST = 126,
  211.  
  212.     /* Verisign OIDs */
  213.     SEC_OID_VERISIGN_USER_NOTICES = 127,
  214.  
  215.     /* PKIX OIDs */
  216.     SEC_OID_PKIX_CPS_POINTER_QUALIFIER = 128,
  217.     SEC_OID_PKIX_USER_NOTICE_QUALIFIER = 129,
  218.     SEC_OID_PKIX_OCSP = 130,
  219.     SEC_OID_PKIX_OCSP_BASIC_RESPONSE = 131,
  220.     SEC_OID_PKIX_OCSP_NONCE = 132,
  221.     SEC_OID_PKIX_OCSP_CRL = 133,
  222.     SEC_OID_PKIX_OCSP_RESPONSE = 134,
  223.     SEC_OID_PKIX_OCSP_NO_CHECK = 135,
  224.     SEC_OID_PKIX_OCSP_ARCHIVE_CUTOFF = 136,
  225.     SEC_OID_PKIX_OCSP_SERVICE_LOCATOR = 137,
  226.     SEC_OID_PKIX_REGCTRL_REGTOKEN = 138,
  227.     SEC_OID_PKIX_REGCTRL_AUTHENTICATOR = 139,
  228.     SEC_OID_PKIX_REGCTRL_PKIPUBINFO = 140,
  229.     SEC_OID_PKIX_REGCTRL_PKI_ARCH_OPTIONS = 141,
  230.     SEC_OID_PKIX_REGCTRL_OLD_CERT_ID = 142,
  231.     SEC_OID_PKIX_REGCTRL_PROTOCOL_ENC_KEY = 143,
  232.     SEC_OID_PKIX_REGINFO_UTF8_PAIRS = 144,
  233.     SEC_OID_PKIX_REGINFO_CERT_REQUEST = 145,
  234.     SEC_OID_EXT_KEY_USAGE_SERVER_AUTH = 146,
  235.     SEC_OID_EXT_KEY_USAGE_CLIENT_AUTH = 147,
  236.     SEC_OID_EXT_KEY_USAGE_CODE_SIGN = 148,
  237.     SEC_OID_EXT_KEY_USAGE_EMAIL_PROTECT = 149,
  238.     SEC_OID_EXT_KEY_USAGE_TIME_STAMP = 150,
  239.     SEC_OID_OCSP_RESPONDER = 151,
  240.  
  241.     /* Netscape Algorithm OIDs */
  242.     SEC_OID_NETSCAPE_SMIME_KEA = 152,
  243.  
  244.     /* Skipjack OID -- ### mwelch temporary */
  245.     SEC_OID_FORTEZZA_SKIPJACK = 153,
  246.  
  247.     /* PKCS 12 V2 oids */
  248.     SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_128_BIT_RC4 = 154,
  249.     SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_40_BIT_RC4 = 155,
  250.     SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_3KEY_TRIPLE_DES_CBC = 156,
  251.     SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_2KEY_TRIPLE_DES_CBC = 157,
  252.     SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_128_BIT_RC2_CBC = 158,
  253.     SEC_OID_PKCS12_V2_PBE_WITH_SHA1_AND_40_BIT_RC2_CBC = 159,
  254.     SEC_OID_PKCS12_SAFE_CONTENTS_ID = 160,
  255.     SEC_OID_PKCS12_PKCS8_SHROUDED_KEY_BAG_ID = 161,
  256.  
  257.     SEC_OID_PKCS12_V1_KEY_BAG_ID = 162,
  258.     SEC_OID_PKCS12_V1_PKCS8_SHROUDED_KEY_BAG_ID = 163,
  259.     SEC_OID_PKCS12_V1_CERT_BAG_ID = 164,
  260.     SEC_OID_PKCS12_V1_CRL_BAG_ID = 165,
  261.     SEC_OID_PKCS12_V1_SECRET_BAG_ID = 166,
  262.     SEC_OID_PKCS12_V1_SAFE_CONTENTS_BAG_ID = 167,
  263.     SEC_OID_PKCS9_X509_CERT = 168,
  264.     SEC_OID_PKCS9_SDSI_CERT = 169,
  265.     SEC_OID_PKCS9_X509_CRL = 170,
  266.     SEC_OID_PKCS9_FRIENDLY_NAME = 171,
  267.     SEC_OID_PKCS9_LOCAL_KEY_ID = 172,
  268.     SEC_OID_PKCS12_KEY_USAGE = 173,
  269.  
  270.     /*Diffe Helman OIDS */
  271.     SEC_OID_X942_DIFFIE_HELMAN_KEY = 174,
  272.  
  273.     /* Netscape other name types */
  274.     SEC_OID_NETSCAPE_NICKNAME = 175,
  275.  
  276.     /* Cert Server OIDS */
  277.     SEC_OID_NETSCAPE_RECOVERY_REQUEST = 176,
  278.  
  279.     /* New PSM certificate management OIDs */
  280.     SEC_OID_CERT_RENEWAL_LOCATOR = 177,
  281.     SEC_OID_NS_CERT_EXT_SCOPE_OF_USE = 178,
  282.     
  283.     /* CMS (RFC2630) OIDs */
  284.     SEC_OID_CMS_EPHEMERAL_STATIC_DIFFIE_HELLMAN = 179,
  285.     SEC_OID_CMS_3DES_KEY_WRAP = 180,
  286.     SEC_OID_CMS_RC2_KEY_WRAP = 181,
  287.  
  288.     /* SMIME attributes */
  289.     SEC_OID_SMIME_ENCRYPTION_KEY_PREFERENCE = 182,
  290.  
  291.     /* AES OIDs */
  292.     SEC_OID_AES_128_ECB     = 183,
  293.     SEC_OID_AES_128_CBC     = 184,
  294.     SEC_OID_AES_192_ECB     = 185,
  295.     SEC_OID_AES_192_CBC     = 186,
  296.     SEC_OID_AES_256_ECB     = 187,
  297.     SEC_OID_AES_256_CBC     = 188,
  298.  
  299.     SEC_OID_SDN702_DSA_SIGNATURE = 189,
  300.  
  301.     SEC_OID_MS_SMIME_ENCRYPTION_KEY_PREFERENCE = 190,
  302.  
  303.     SEC_OID_SHA256              = 191,
  304.     SEC_OID_SHA384              = 192,
  305.     SEC_OID_SHA512              = 193,
  306.  
  307.     SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION = 194,
  308.     SEC_OID_PKCS1_SHA384_WITH_RSA_ENCRYPTION = 195,
  309.     SEC_OID_PKCS1_SHA512_WITH_RSA_ENCRYPTION = 196,
  310.  
  311.     SEC_OID_AES_128_KEY_WRAP    = 197,
  312.     SEC_OID_AES_192_KEY_WRAP    = 198,
  313.     SEC_OID_AES_256_KEY_WRAP    = 199,
  314.  
  315.     /* Elliptic Curve Cryptography (ECC) OIDs */
  316.     SEC_OID_ANSIX962_EC_PUBLIC_KEY  = 200,
  317.     SEC_OID_ANSIX962_ECDSA_SIGNATURE_WITH_SHA1_DIGEST = 201,
  318.  
  319.     /* ANSI X9.62 named elliptic curves (prime field) */
  320.     SEC_OID_ANSIX962_EC_PRIME192V1  = 202,
  321.     SEC_OID_ANSIX962_EC_PRIME192V2  = 203,
  322.     SEC_OID_ANSIX962_EC_PRIME192V3  = 204,
  323.     SEC_OID_ANSIX962_EC_PRIME239V1  = 205,
  324.     SEC_OID_ANSIX962_EC_PRIME239V2  = 206,
  325.     SEC_OID_ANSIX962_EC_PRIME239V3  = 207,
  326.     SEC_OID_ANSIX962_EC_PRIME256V1  = 208,
  327.  
  328.     /* SECG named elliptic curves (prime field) */
  329.     SEC_OID_SECG_EC_SECP112R1       = 209,
  330.     SEC_OID_SECG_EC_SECP112R2       = 210,
  331.     SEC_OID_SECG_EC_SECP128R1       = 211,
  332.     SEC_OID_SECG_EC_SECP128R2       = 212,
  333.     SEC_OID_SECG_EC_SECP160K1       = 213,
  334.     SEC_OID_SECG_EC_SECP160R1       = 214, 
  335.     SEC_OID_SECG_EC_SECP160R2       = 215,
  336.     SEC_OID_SECG_EC_SECP192K1       = 216,
  337.     /* SEC_OID_SECG_EC_SECP192R1 is SEC_OID_ANSIX962_EC_PRIME192V1 */
  338.     SEC_OID_SECG_EC_SECP224K1       = 217,
  339.     SEC_OID_SECG_EC_SECP224R1       = 218,
  340.     SEC_OID_SECG_EC_SECP256K1       = 219,
  341.     /* SEC_OID_SECG_EC_SECP256R1 is SEC_OID_ANSIX962_EC_PRIME256V1 */
  342.     SEC_OID_SECG_EC_SECP384R1       = 220,
  343.     SEC_OID_SECG_EC_SECP521R1       = 221,
  344.  
  345.     /* ANSI X9.62 named elliptic curves (characteristic two field) */
  346.     SEC_OID_ANSIX962_EC_C2PNB163V1  = 222,
  347.     SEC_OID_ANSIX962_EC_C2PNB163V2  = 223,
  348.     SEC_OID_ANSIX962_EC_C2PNB163V3  = 224,
  349.     SEC_OID_ANSIX962_EC_C2PNB176V1  = 225,
  350.     SEC_OID_ANSIX962_EC_C2TNB191V1  = 226,
  351.     SEC_OID_ANSIX962_EC_C2TNB191V2  = 227,
  352.     SEC_OID_ANSIX962_EC_C2TNB191V3  = 228,
  353.     SEC_OID_ANSIX962_EC_C2ONB191V4  = 229,
  354.     SEC_OID_ANSIX962_EC_C2ONB191V5  = 230,
  355.     SEC_OID_ANSIX962_EC_C2PNB208W1  = 231,
  356.     SEC_OID_ANSIX962_EC_C2TNB239V1  = 232,
  357.     SEC_OID_ANSIX962_EC_C2TNB239V2  = 233,
  358.     SEC_OID_ANSIX962_EC_C2TNB239V3  = 234,
  359.     SEC_OID_ANSIX962_EC_C2ONB239V4  = 235,
  360.     SEC_OID_ANSIX962_EC_C2ONB239V5  = 236,
  361.     SEC_OID_ANSIX962_EC_C2PNB272W1  = 237,
  362.     SEC_OID_ANSIX962_EC_C2PNB304W1  = 238,
  363.     SEC_OID_ANSIX962_EC_C2TNB359V1  = 239,
  364.     SEC_OID_ANSIX962_EC_C2PNB368W1  = 240,
  365.     SEC_OID_ANSIX962_EC_C2TNB431R1  = 241,
  366.  
  367.     /* SECG named elliptic curves (characteristic two field) */
  368.     SEC_OID_SECG_EC_SECT113R1       = 242,
  369.     SEC_OID_SECG_EC_SECT113R2       = 243,
  370.     SEC_OID_SECG_EC_SECT131R1       = 244,
  371.     SEC_OID_SECG_EC_SECT131R2       = 245,
  372.     SEC_OID_SECG_EC_SECT163K1       = 246,
  373.     SEC_OID_SECG_EC_SECT163R1       = 247,
  374.     SEC_OID_SECG_EC_SECT163R2       = 248,
  375.     SEC_OID_SECG_EC_SECT193R1       = 249,
  376.     SEC_OID_SECG_EC_SECT193R2       = 250,
  377.     SEC_OID_SECG_EC_SECT233K1       = 251,
  378.     SEC_OID_SECG_EC_SECT233R1       = 252,
  379.     SEC_OID_SECG_EC_SECT239K1       = 253,
  380.     SEC_OID_SECG_EC_SECT283K1       = 254,
  381.     SEC_OID_SECG_EC_SECT283R1       = 255,
  382.     SEC_OID_SECG_EC_SECT409K1       = 256,
  383.     SEC_OID_SECG_EC_SECT409R1       = 257,
  384.     SEC_OID_SECG_EC_SECT571K1       = 258,
  385.     SEC_OID_SECG_EC_SECT571R1       = 259,
  386.  
  387.     SEC_OID_NETSCAPE_AOLSCREENNAME  = 260,
  388.  
  389.     SEC_OID_AVA_SURNAME              = 261,
  390.     SEC_OID_AVA_SERIAL_NUMBER        = 262,
  391.     SEC_OID_AVA_STREET_ADDRESS       = 263,
  392.     SEC_OID_AVA_TITLE                = 264,
  393.     SEC_OID_AVA_POSTAL_ADDRESS       = 265,
  394.     SEC_OID_AVA_POSTAL_CODE          = 266,
  395.     SEC_OID_AVA_POST_OFFICE_BOX      = 267,
  396.     SEC_OID_AVA_GIVEN_NAME           = 268,
  397.     SEC_OID_AVA_INITIALS             = 269,
  398.     SEC_OID_AVA_GENERATION_QUALIFIER = 270,
  399.     SEC_OID_AVA_HOUSE_IDENTIFIER     = 271,
  400.     SEC_OID_AVA_PSEUDONYM            = 272,
  401.  
  402.     /* More OIDs */
  403.     SEC_OID_PKIX_CA_ISSUERS          = 273,
  404.     SEC_OID_PKCS9_EXTENSION_REQUEST  = 274,
  405.  
  406.     SEC_OID_TOTAL
  407. } SECOidTag;
  408.  
  409. #define SEC_OID_SECG_EC_SECP192R1 SEC_OID_ANSIX962_EC_PRIME192V1
  410. #define SEC_OID_SECG_EC_SECP256R1 SEC_OID_ANSIX962_EC_PRIME256V1
  411.  
  412. /* fake OID for DSS sign/verify */
  413. #define SEC_OID_SHA SEC_OID_MISS_DSS
  414.  
  415. typedef enum {
  416.     INVALID_CERT_EXTENSION = 0,
  417.     UNSUPPORTED_CERT_EXTENSION = 1,
  418.     SUPPORTED_CERT_EXTENSION = 2
  419. } SECSupportExtenTag;
  420.  
  421. struct SECOidDataStr {
  422.     SECItem            oid;
  423.     SECOidTag          offset;
  424.     const char *       desc;
  425.     unsigned long      mechanism;
  426.     SECSupportExtenTag supportedExtension;    
  427.                     /* only used for x.509 v3 extensions, so
  428.                    that we can print the names of those
  429.                    extensions that we don't even support */
  430. };
  431.  
  432. #endif /* _SECOIDT_H_ */
  433.